package com.xindacloud.sms.adapter.service.business.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xindacloud.sms.adapter.dao.SmsProjectMapper;
import com.xindacloud.sms.adapter.entity.SmsProject;
import com.xindacloud.sms.adapter.service.business.ISmsProjectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class SmsProjectServiceImpl extends ServiceImpl<SmsProjectMapper, SmsProject> implements ISmsProjectService {

    @Override
    public SmsProject queryProjectInfoBy(String token, String password) {
        return lambdaQuery()
                .eq(SmsProject::getToken, token)
                .eq(SmsProject::getPassword, password)
                .one();

    }
}
